<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE>
<html>
<head>
<jsp:include page="../header.jsp">
	<jsp:param value="收款记录信息" name="title" />
</jsp:include>
<script type="text/javascript" src="static/js/studentAdd.js"></script>
<script type="text/javascript"src="${basePath }My97DatePicker/WdatePicker.js">
</script>
<script type="text/javascript">
	$(function() {
		$('.ui.button');
		$('.ui.teal.basic.button');
	});
</script>
</head>
<body>
	<jsp:include page="../menu/menue.jsp"></jsp:include>
	<div class="teacher-content"
		style="margin-left: 300px; margin-right: 300px; margin-top: 30px;">
		<form method="post" class="ui form create-form">
			<div class="ui warning form segment">
				<label>&nbsp;</label>
				<div class="field">
					<h3>收款</h3>
				</div>
				<label>&nbsp;</label> <label>&nbsp;</label> 
				<div class="two fields" style = "float: center;margin-left: 120px">
					<!-- 如果是新建这里没有值 -->
			<!--  	<input type="hidden" name="id" value="${studentdetail.id }"> -->	 
					<div class="field" style = "width :220px" >
						<label>学生姓名</label>
						<input placeholder="学生姓名" type="text" name="name"
							<c:choose>
						<c:when test="${studentdetail.id==null}">
						 value="${param.id}"
						</c:when>
						<c:otherwise>
						 value="${studentdetail.id}"
						</c:otherwise>
					</c:choose>
					>
					</div>
				   <label>&nbsp;</label> 
					<div class="field" style = "width :220px">
					<label>应付金额</label>
						<input placeholder="应付金额" type="text" name="duepay"
							<c:choose>
				<c:when test="${studentdetail.duePay==null}">
				 value="${param.duePay}"
				</c:when>
				<c:otherwise>
				 value="${studentdetail.duePay}"
				</c:otherwise>
			</c:choose>>
					</div>
				</div>
				<label>&nbsp;</label>
				<div class="two fields" style= "margin-left: 120px">	
				<div class="field" style = "width :220px">
					<label>已付金额</label>
						<input placeholder="已付金额" type="text" name="alreadypay"
							<c:choose>
				<c:when test="${studentdetail.havePay==null}">
				 value="${param.havePay}"
				</c:when>
				<c:otherwise>
				 value="${studentdetail.havePay}"
				</c:otherwise>
			</c:choose>>
					</div>
					<label>&nbsp;</label>
					<div class="field" style = "width :220px">
					<label>本次所付金额</label>
						<input placeholder="本次所付金额" type="text" name="thistimepay"
							<c:choose>
				<c:when test="${studentdetail.thisPay==null}">
				 value="${param.thisPay}"
				</c:when>
				<c:otherwise>
				 value="${studentdetail.thisPay}"
				</c:otherwise>
			</c:choose>>
					</div>
				</div>	
				<label>&nbsp;</label>
				<div class="two fields" style= "margin-left: 120px">	
				<div class="field" style = "width :220px">
					<label>未交金额</label>
						<input placeholder="未交金额" type="text" name="nopay"
							<c:choose>
				<c:when test="${studentdetail.noPay==null}">
				 value="${param.noPay}"
				</c:when>
				<c:otherwise>
				 value="${studentdetail.noPay}"
				</c:otherwise>
			</c:choose>>
					</div>
					<label>&nbsp;</label>
					<div class="field" style = "width :220px">
					<label>收款人</label>
						<input placeholder="收款人" type="text" name="empId"
							<c:choose>
				<c:when test="${studentdetail.empId==null}">
				 value="${param.empId}"
				</c:when>
				<c:otherwise>
				 value="${studentdetail.empId}"
				</c:otherwise>
			</c:choose>>
					</div>
				</div>	
				<label>&nbsp;</label>
				<div class="two fields" style= "margin-left: 120px">	
				<div class="field" style = "width :220px">
					<label>收款时间</label>
						<img src="static/images/calendar.png"></img>
						<input type="text" id="d241" onfocus="WdatePicker()"
						class="Wdate"style="width: 150px; height: 26px; margin-right: 10px;"
						placeholder="收款时间" name="paytime"value="${param.payDate }" /> 
					</div>
					<label>&nbsp;</label>
				</div>	
			</div>
			<label>&nbsp;</label>
			<label>&nbsp;</label>
			<button class="ui button" type="submit" style="margin-left: 320px; margin-top: 20px;">确认</button>
		  <span>${error}</span>
		
		</form>
	</div>
</body>
</html>